#include "user.h"

/**********************
 * default user
 */
user::user()
{
    name = "Freeplay";
    highscore = 0;
    leftlevel = 100;
    rightlevel = 100;
    gametime = 60;
    showscores = true;
}


/**********************
 * Load user
 */
user::user(QString n, int h, int l, int r, int g, bool s){
    name = n;
    highscore = h;
    leftlevel = l;
    rightlevel = r;
    gametime = g;
    showscores = s;
}


// getters and setters
void user::setName(QString n){ name = n;}
void user::setHigh(int h){highscore = h;}
void user::setLeft(int l){leftlevel = l;}
void user::setRight(int r){rightlevel = r;}
void user::setGame(int g){gametime = g;}
void user::setShore(bool s){showscores = s;}

QString user::getName(){return name;}
int user::getHigh(){return highscore;}
int user::getLeft(){return leftlevel;}
int user::getRight(){return rightlevel;}
int user::getGame(){return gametime;}
bool user::getShore(){return showscores;}

